<div class="pager">
	共${recordcount}条数据
	<#if pagecount gt 1>
		<#if pageindex gt 1>
			<a href="index.html">首页</a>
			<a href="${(pageindex lt 3)?string("index",pageindex-1)}.html">上一页</a>
		</#if>
		<#assign pageStart = (pageindex lte 5)?string(1,pageindex-5)?number>
		<#assign pageLength = (pagecount-pageindex lt 5)?string(pagecount,pageindex+5)?number>
        <#list pageStart..pageLength as i>
        	 <a href="${(i == 1)?string("index",i)}.html" class="linkbtn<#if i == pageindex> pcs</#if>">${i}</a> 
        </#list>
		<#if pageindex lt pagecount>
			<a href="${(pageindex == pagecount)?string(pagecount,pageindex+1)}.html">下一页</a>
			<a href="${pagecount}.html">尾页</a>
		</#if>
	</#if>
	共${pagecount}页
</div>